package com.erp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.erp.mapper.UserRoleMapper;
import com.erp.pojo.UserRole;
import com.erp.service.UserRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author honor
* @description 针对表【t_user_role】的数据库操作Service实现
* @createDate 2025-05-19 14:32:52
*/
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole>
    implements UserRoleService{
    @Override
    public List<UserRole> getByUserId(Integer uid) {
        QueryWrapper<UserRole> wrapper =new QueryWrapper<UserRole>();
        wrapper.eq("uid",uid);

        List<UserRole> userRole = list(wrapper);
        return userRole;
    }
}




